import { Injectable } from '@angular/core';
import { Hero } from 'app/models/hero';
import { HEROES } from 'app/mock/heroes';

@Injectable()
export class HeroService {
    getHeroes(): Promise<Hero[]> {
        return new Promise(resolve => setTimeout(() => resolve(HEROES), 200));
    }
}
